@import '~antd/dist/antd.css';

@font-face {
	font-family: 'FZZJ-TBPYTJW';
	src: url('../FZZJ-TBPYTJW.TTF');
}

* {
	margin: 0;
	padding: 0;
}

html {
	font-size: 5vmin;
}

body {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background-color: rgba($color: #000000, $alpha: 0);
}

#mainBody {
	position: absolute;
	left: 0.1rem;
	top: 0.1rem;
	width: calc(100vw - 0.2rem);
	height: calc(100vh - 0.2rem);
	overflow: hidden;
	box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.8);
	animation-duration: 250ms;
	animation-fill-mode: forwards;
	animation-timing-function: linear;
	animation-direction: normal;
	animation-play-state: running;
}

#header {
	width: 100%;
	height: 40%;
}

#titleBar {
	position: relative;
	width: 100%;
	height: 2rem;
	color: white;
	font-size: 1.3rem;
	line-height: 2rem;
	user-select: none;
	z-index: 1;
}

#dragBar {
	-webkit-app-region: drag;
	position: absolute;
	left: 0.1rem;
	top: 0.1rem;
	width: 100%;
	height: calc(40% - 0.1rem);
	display: inline-block;
}

.titleBtn {
	border: none;
	outline: none;
	color: white;
	background: none;
	float: right;
	width: 2rem;
	height: 2rem;
	-webkit-app-region: no-drag;
	transition: 250ms;
}

#shutdown:hover,
#switch:hover,
#minimize:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

@keyframes rotateIn {
	from {
		transform: perspective(1000px) rotateY(-90deg) scale(0.65);
	}

	to {
		transform: perspective(1000px) rotateY(0deg) scale(1);
	}
}

@keyframes rotateOut {
	from {
		transform: perspective(1000px) rotateY(0deg) scale(1);
	}

	to {
		transform: perspective(1000px) rotateY(90deg) scale(0.65);
	}
}

.main {
	position: relative;
	top: -0.1rem;
	width: 100%;
	height: calc(60% + 0.1rem);
	text-align: center;
}

.main .form {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: white;

	.ant-form.ant-form-horizontal {
		.ant-row.ant-form-item {
			margin: 0.5rem;
		}
		.ant-form-item-explain {
			display: none;
		}
	}

	&#registerForm {
		align-items: center;
		justify-content: center;
	}
}

.submit {
	position: relative;
	font-size: 1.25rem;
	padding: 0.75rem;
	width: 50%;
	background-color: #ec221b;
	color: white;
	border: none;
	border-radius: 0.25rem;
	outline: none;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
	transition: 300ms;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
	z-index: 1;
	user-select: none;
}

.submit:hover {
	background-color: #ff486b;
}
